/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.taobao.remote.RemoteTaobaoProductService
   Module Description   :

   Date Created      : 2010/12/13
   Original Author   : jeffma
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.taobao.remote;

import javax.jws.WebMethod;
import javax.jws.WebService;

import com.taobao.api.domain.Item;

/**
 * @author jeffma
 * 
 */
@WebService(serviceName = "remoteTaobaoProductService")
public interface RemoteTaobaoProductService {

	@WebMethod
	public Item getProduct(String productId);

	@WebMethod
	public String addProduct(String productId);

	@WebMethod
	public boolean updateProduct(String productId);

	@WebMethod
	public boolean deleteProduct(String productId);

	// @WebMethod
	// public boolean setDebug(boolean debug);

	/**
	 * @param percentage float, 應該小於 1.0, 撈出 (SHELF_PRICE-PRODUCT_COST)/SHELF_PRICE > n 的商品
	 * @param minSpecInv 庫存商品小於 minSpecInv 的商品不撈
	 * @param full true: 全量更新(產生 FullIndex.xml); false: 變量更新(產生 IncrementIndex.xml)
	 * @return
	 */
	@WebMethod
	public boolean buildFeed(String percentage, int minSpecInv, boolean full);
}
